package com.fhzheng.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @title:
 * @author: fhzheng
 * @date: 6/18/2020 15:47
 * @description:
 */

@RestController
@Api(value = "用户模块")
public class UserController {

    public static Logger log = LoggerFactory.getLogger(UserController.class);

    @GetMapping("/userSwagger")
    @ApiOperation(value = "测试Swagger")
    public String hello() {
        log.info("UserController.hello requested!");
        return "hello SpringBoot-swagger";
    }
}
